import request from "@/utils/request";
import axios from "axios";

export default {
  getUserList(data) {
    return request({
      url: "/user/get_list",
      method: "get",
      params: {
        token: data.token,
        username: "",
        pageNo: data.pageNo,
        pageSize: data.pageSize,
      },
    });
  },
  updateUser(data) {
    return request({
      url: "/user/updata_user",
      method: "put",
      headers: {
        "Content-Type": "application/json",
      },
      data: data.user,
    });
  },

  delUser(data) {
    console.log(data);
    return request({
      url: "/user/delete_user",
      method: "delete",
      params: {
        userId: parseInt(data.userId, 10),
      },
    });
  },

 
};
